<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <script src="js/jquery-3.3.1.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
</head>
<body style="padding:25px;">
    <form action="#">
        <!-- 1.输入框 -->
        <div class="form-group">
            <label>输入框</label>
            <input type="text" class="form-control" placeholder="请输入文本" style="width:50%;">
        </div>
        <!-- 2.文本框 -->
        <div class="form-group">
            <label>文本框</label>
            <textarea class="form-control" cols="30" rows="5" style="width:50%";></textarea>
        </div>
        <!-- 3.复选框 -->
        <div class="checkbox"> <!-- 默认样式 -->
            <label >
                <input type="checkbox">喝酒
            </label>
        </div>
        <div class="checkbox"> <!-- 默认样式 -->
            <label >
                <input type="checkbox">抽烟
            </label>
        </div>
        <div class="checkbox-inline"> <!-- 内联样式 -->
            <label >
                <input type="checkbox">跳舞
            </label>
        </div>
        <div class="checkbox-inline"> <!-- 内联样式 -->
            <label >
                <input type="checkbox">唱歌
            </label>
        </div>
        <!-- 4.复选按钮 -->
        <br/>
        <div class="btn-group" data-toggle="buttons">
             <label class="btn btn-primary">
                 <input type="checkbox">体育
             </label>
             <label class="btn btn-primary">
                <input type="checkbox">音乐
            </label>
            <label class="btn btn-primary">
                <input type="checkbox">美术
            </label>
            <label class="btn btn-primary">
                <input type="checkbox">电脑
            </label>
        </div>
        <!-- 5.单选框 -->
        <label class="radio">
             <input type="radio" name="sex">男
        </label>
        <label class="radio">
            <input type="radio" name="sex">女
       </label>
       <hr>
       <label class="radio-inline">
             <input type="radio" name="gender">耕
        </label>
        <label class="radio-inline">
            <input type="radio" name="gender">织
       </label>
       <!-- 6.单选按钮 -->
       <hr>
       <div class="btn-group" data-toggle="buttons">
            <label class="btn btn-primary">
                <input type="radio" name="sex">男
            </label>
            <label class="btn btn-primary">
                <input type="radio" name="sex">女
            </label>
       </div>
    </form>
</body>
</html>